import { RouteRecordRaw } from 'vue-router';


/**
 * 定义静态路由
 */
export const dynamicRoutes: Array<RouteRecordRaw> = [
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/index.vue'),
        hidden: true
    },
    {
        path: '/bigScreen',
        name: 'bigScreen',
        component: () => import('@/views/bigScreen/index.vue'),
        hidden: true
    },
    {
        path: '/',
        name: '/',
        component: () => import('@/layout/index.vue'),
        redirect: '/monitorOverview/evaluation',
        meta: {
            title: '监控概况',
            icon: 'icon-survey'
        },
        children: [
            {
                path: '/monitorOverview/evaluation',
                name: 'evaluation',
                component: () => import('@/views/monitorOverview/evaluation.vue'),
                meta: {
                    title: '评测分析'
                }
            },
            {
                path: '/monitorOverview/reviewsDetails',
                name: 'reviewsDetails',
                component: () => import('@/views/monitorOverview/reviewsDetails.vue'),
                hidden: true,
                meta: {
                    title: '评测详情'
                }
            },
            {
                path: '/monitorOverview/propertyMonitor',
                name: 'propertyMonitor',
                component: () => import('@/views/monitorOverview/propertyMonitor.vue'),
                meta: {
                    title: '性能监控'
                }
            },
            {
                path: '/monitorOverview/deviceMonitor',
                name: 'deviceMonitor',
                component: () => import('@/views/monitorOverview/deviceMonitor.vue'),
                meta: {
                    title: '设备监测'
                }
            },
            {
                path: '/monitorOverview/cloudServiceMonitor',
                name: 'cloudServiceMonitor',
                component: () => import('@/views/monitorOverview/cloudServiceMonitor.vue'),
                meta: {
                    title: '云服务监控'
                }
            },
            {
                path: '/monitorOverview/scatterPlot',
                name: 'scatterPlot',
                component: () => import('@/views/monitorOverview/scatterPlot.vue'),
                meta: {
                    title: '散点图分析'
                }
            }
        ]
    },
    {
        path: '/monitorTask',
        name: 'monitorTask',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '监控任务',
            icon: 'icon-task'
        },
        children: [
            {
                path: '/monitorTask/configurationTask',
                name: 'configurationTask',
                component: () => import('@/views/monitorTask/configurationTask.vue'),
                hidden: true,
                meta: {
                    title: '配置任务'
                }
            },
            {
                path: '/monitorTask/taskList',
                name: 'taskList',
                component: () => import('@/views/monitorTask/taskList.vue'),
                meta: {
                    title: '任务列表'
                }
            },
            {
                path: '/monitorTask/monitorGroup',
                name: 'monitorGroup',
                component: () => import('@/views/monitorTask/monitorGroup.vue'),
                meta: {
                    title: '监测组管理'
                }
            }
        ]
    }, {
        path: '/businessAlert',
        name: 'businessAlert',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '业务告警',
            icon: 'icon-alarm'
        },
        children: [
            {
                path: '/businessAlert/alertlgo',
                name: 'alertlgo',
                component: () => import('@/views/businessAlert/alertlgo.vue'),
                meta: {
                    title: '告警日志'
                }
            },
            {
                path: '/businessAlert/alertNotify',
                name: 'alertNotify',
                component: () => import('@/views/businessAlert/alertNotify.vue'),
                meta: {
                    title: '告警通知设置'
                }
            }
        ]
    },
    {
        path: '/basicManage',
        name: 'basicManage',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '基础管理',
            icon: 'icon-terminal'
        },
        children: [
            {
                path: '/basicManage/monitorManage',
                name: 'monitorManage',
                component: () => import('@/views/basicManage/monitorManage.vue'),
                meta: {
                    title: '监测点管理'
                }
            },
            {
                path: '/basicManage/reviewsConfiguration',
                name: 'reviewsConfiguration',
                component: () => import('@/views/basicManage/reviewsConfiguration.vue'),
                meta: {
                    title: '评测配置'
                }
            },
            {
                path: '/basicManage/sdkUpgrade',
                name: 'sdkUpgrade',
                component: () => import('@/views/basicManage/sdkUpgrade.vue'),
                meta: {
                    title: 'SDK升级'
                }
            }
        ]
    }
];












// {
//     path: '/businessAlert/customizeAlert',
//     name: 'customizeAlert',
//     component: () => import('@/views/businessAlert/customizeAlert.vue'),
//     meta: {
//         title: '自定义告警'
//     }
// },

// {
//     path: '/monitorTask/strategyDeploy',
//     name: 'strategyDeploy',
//     component: () => import('@/views/monitorTask/strategyDeploy.vue'),
//     meta: {
//         title: '策略配置'
//     }
// },

// {
//     path: '/monitorOverview/rcuMonitor',
//     name: 'rcuMonitor',
//     component: () => import('@/views/monitorOverview/rcuMonitor.vue'),
//     meta: {
//         title: 'RCU监控'
//     }
// },
// {
//     path: '/monitorOverview/gwMonitor',
//     name: 'gwMonitor',
//     component: () => import('@/views/monitorOverview/gwMonitor.vue'),
//     meta: {
//         title: 'GW监控'
//     }
// },


// {
//     path: '/test1',
//     name: 'test',
//     component: () => import('@/layout/index.vue'),
//     meta: {
//         title: 'test'
//         icon: 'el-icon-menu'
//     },
//     children: [
//         {
//             path: '/test1/a',
//             name: 'a',
//             component: () => import('@/views/test1/a.vue'),
//             meta: {
//                 title: 'a'
//             }
//         },
//         {
//             path: '/test1/b',
//             name: 'b',
//             component: () => import('@/views/test1/b.vue'),
//             meta: {
//                 title: 'b'
//             }
//         }
//     ]
// },

//系统管理
// {
//     path: '/systemManage',
//     name: 'systemManage',
//     component: () => import('@/layout/index.vue'),
//     meta: {
//         title: '系统管理',
//         isLink: '',
//         isHide: false,
//         isKeepAlive: true,
//         isAffix: true,
//         isIframe: false,
//         icon: 'el-icon-menu'
//     },
//     children: [
//         {
//             path: '/systemManage/accountManage',
//             name: 'accountManage',
//             component: () => import('@/views/systemManage/accountManage.vue'),
//             meta: {
//                 title: '账号管理',
//                 isLink: '',
//                 isHide: false,
//                 isKeepAlive: true,
//                 isAffix: false,
//                 isIframe: false,
//             }
//         },
//         {
//             path: '/systemManage/roleManage',
//             name: 'roleManage',
//             component: () => import('@/views/systemManage/roleManage.vue'),
//             meta: {
//                 title: '角色管理',
//                 isLink: '',
//                 isHide: false,
//                 isKeepAlive: true,
//                 isAffix: false,
//                 isIframe: false
//             }
//         },
//         {
//             path: '/systemManage/menuManage',
//             name: 'menuManage',
//             component: () => import('@/views/systemManage/menuManage.vue'),
//             meta: {
//                 title: '菜单管理',
//                 isLink: '',
//                 isHide: false,
//                 isKeepAlive: true,
//                 isAffix: false,
//                 isIframe: false
//             }
//         }
//     ]
// }




// /**
//  * 定动态态路由
//  */
// export const staticRoutes: Array<RouteRecordRaw> = [
//     {
//         path: '/login',
//         name: 'login',
//         component: () => import('@/views/login/index.vue'),
//         meta: {
//             title: '登录',
//         },
//     },
//     {
//         path: '/404',
//         name: 'notFound',
//         component: () => import('@/views/error/404.vue'),
//         meta: {
//             title: 'message.staticRoutes.notFound',
//         },
//     },
// ];
